home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / io_md.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  1KB  |  48 lines

  1. /*
  2.  * @(#)io_md.h    1.19 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. /*
  16.  * Win32 system dependent low level io definitions
  17.  */
  18.  
  19. #ifndef _WIN32_IO_MD_H_
  20. #define _WIN32_IO_MD_H_
  21.  
  22. #include <stdio.h>
  23. #include <windows.h>
  24. #include <sys/types.h>
  25. #include <ctype.h>
  26. #include <stdlib.h>
  27. #include "dirent.h"
  28.  
  29. #define R_OK    4
  30. #define W_OK    2
  31. #define X_OK    1
  32. #define F_OK    0
  33.  
  34. #define    MAXPATHLEN _MAX_PATH
  35.  
  36. #define S_ISFIFO(mode)    (((mode) & _S_IFIFO) == _S_IFIFO)
  37. #define S_ISCHR(mode)    (((mode) & _S_IFCHR) == _S_IFCHR)
  38. #define S_ISDIR(mode)    (((mode) & _S_IFDIR) == _S_IFDIR)
  39. #define S_ISREG(mode)    (((mode) & _S_IFREG) == _S_IFREG)
  40.  
  41. int sysOpen(const char *, int, int);
  42. int sysAccess(const char *, int);
  43. int sysMkdir(const char *, int);
  44. int sysUnlink(const char *);
  45. int sysAvailable(int fd, long *bytes);
  46.  
  47. #endif /* !_WIN32_IO_MD_H_ */
  48.